﻿<UserControl x:Class="Script.Components.Controls.DynamicMapMarker"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Foreground="Black"
             mc:Ignorable="d" Width="200" Height="100">
    <Grid>
        <Grid.BitmapEffect>
            <DropShadowBitmapEffect Direction="310" Softness="0.5" ShadowDepth="5"/>
        </Grid.BitmapEffect>
        <!--Fill="{Binding Foreground}"-->
        <Rectangle Fill="{Binding Foreground}" Width="20" Height="20" HorizontalAlignment="Left">
            <Rectangle.OpacityMask>
                <VisualBrush Visual="{StaticResource appbar_pin_rotated_315}"/>
            </Rectangle.OpacityMask>
        </Rectangle>
        <StackPanel Margin="25,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left">
            <TextBlock Name="lblLabel" FontWeight="Black" FontSize="20" Foreground="{Binding Foreground}"  />

            <Rectangle Fill="{Binding Foreground}" Width="25" Height="25" HorizontalAlignment="Right" Margin="0,3,0,0">
                <Rectangle.OpacityMask>
                    <VisualBrush x:Name="weatherIcon"/>
                </Rectangle.OpacityMask>
            </Rectangle>
        </StackPanel>
    </Grid>
</UserControl>
